import 'package:flutter/material.dart';

class AppTheme {
  static ThemeData lightTheme = ThemeData(
    brightness: Brightness.light,
    primaryColor: const Color(0xFF3F5491),
    scaffoldBackgroundColor: Colors.white,
    fontFamily: 'UKIJ Ekran',
    colorScheme: ColorScheme.light(
      primary: const Color(0xFF3F5491),
      secondary: const Color(0xFFFF8C00),
      error: Colors.red.shade700,
      onPrimary: Colors.white,
    ),
    cardTheme: CardTheme(
      color: Colors.white,
      elevation: 2,
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(12),
      ),
    ),
    elevatedButtonTheme: ElevatedButtonThemeData(
      style: ElevatedButton.styleFrom(
        backgroundColor: const Color(0xFF3F5491),
        foregroundColor: Colors.white,
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(8),
        ),
      ),
    ),
    textButtonTheme: TextButtonThemeData(
      style: TextButton.styleFrom(
        foregroundColor: const Color(0xFF3F5491),
      ),
    ),
    iconTheme: const IconThemeData(
      color: Color(0xFF3F5491),
    ),
    textTheme: TextTheme(
      titleLarge: const TextStyle(
        fontSize: 20,
        fontWeight: FontWeight.bold,
        color: Color(0xFF3F5491),
      ),
      titleMedium: const TextStyle(
        fontSize: 16,
        fontWeight: FontWeight.bold,
        color: Colors.black87,
      ),
      bodyLarge: TextStyle(
        fontSize: 16,
        color: Colors.grey.shade800,
      ),
      bodyMedium: TextStyle(
        fontSize: 14,
        color: Colors.grey.shade700,
      ),
    ),
    dividerTheme: DividerThemeData(
      color: Colors.grey.shade300,
      thickness: 1,
    ),
    appBarTheme: const AppBarTheme(
      backgroundColor: Color(0xFF3F5491),
      centerTitle: true,
      foregroundColor: Colors.white,
      elevation: 2,
    ),
  );

  static ThemeData darkTheme = ThemeData(
    brightness: Brightness.dark,
    primaryColor: const Color(0xFF2D3B6F),
    scaffoldBackgroundColor: const Color(0xFF121212),
    fontFamily: 'UKIJ Ekran',
    colorScheme: ColorScheme.dark(
      primary: const Color(0xFF2D3B6F),
      secondary: const Color(0xFFFFA726),
      error: Colors.red.shade400,
      onPrimary: Colors.white,
      surface: const Color(0xFF1E1E1E),
      onSurface: Colors.white,
    ),
    cardTheme: CardTheme(
      color: const Color(0xFF1E1E1E),
      elevation: 4,
      shape: RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(12),
      ),
    ),
    elevatedButtonTheme: ElevatedButtonThemeData(
      style: ElevatedButton.styleFrom(
        backgroundColor: const Color(0xFF2D3B6F),
        foregroundColor: Colors.white,
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(8),
        ),
      ),
    ),
    textButtonTheme: TextButtonThemeData(
      style: TextButton.styleFrom(
        foregroundColor: const Color(0xFFFFA726),
      ),
    ),
    iconTheme: const IconThemeData(
      color: Color(0xFFFFA726),
    ),
    textTheme: const TextTheme(
      titleLarge: TextStyle(
        fontSize: 20,
        fontWeight: FontWeight.bold,
        color: Color(0xFFFFA726),
      ),
      titleMedium: TextStyle(
        fontSize: 16,
        fontWeight: FontWeight.bold,
        color: Colors.white,
      ),
      bodyLarge: TextStyle(
        fontSize: 16,
        color: Colors.white70,
      ),
      bodyMedium: TextStyle(
        fontSize: 14,
        color: Colors.white60,
      ),
    ),
    dividerTheme: const DividerThemeData(
      color: Color(0xFF3A3A3A),
      thickness: 1,
    ),
    appBarTheme: const AppBarTheme(
      backgroundColor: Color(0xFF2D3B6F),
      centerTitle: true,
      foregroundColor: Colors.white,
      elevation: 4,
    ),
  );
} 